# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/sshfs-fuse/sshfs-fuse-1.9.ebuild,v 1.6 2008/03/16 14:28:48 fmccor Exp $

inherit eutils

DESCRIPTION="encrypted filesystem for Fuse."
SRC_URI="http://reboot.animeirc.de/cryptofs/${P}.tar.bz2"
#SRC_URI="mirror://sourceforge/fuse/${P}.tar.gz"
HOMEPAGE="http://fuse.sourceforge.net/sshfs.html"
LICENSE="GPL-2"
DEPEND=">=sys-fs/fuse-2.6.0_pre3
	>=dev-libs/glib-2.4.2"
KEYWORDS="amd64 ~hppa ppc ppc64 sparc x86 ~x86-fbsd"
SLOT="0"

src_unpack() {
	unpack ${P}.tar.bz2
	cd ${S}
}

src_compile() {
	econf ${myconf} || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	dodoc README NEWS ChangeLog AUTHORS cryptofs.conf
}
